﻿{include file="common/header" /}
<article class="page-container">
	<form action="" method="post" class="form form-horizontal" id="myform">
		<div class="row cl">
			<label class="form-label col-xs-4 col-sm-3"><span class="c-red">*</span>选择文件：</label>
			<div class="formControls col-xs-8 col-sm-9">
				<button type="button" class="layui-btn" id="driver">
					<i class="layui-icon">&#xe67c;</i>选择文件
				</button>
			</div>
		</div>
	</form>
</article>
<script>
    layui.use('upload', function(){
        var upload = layui.upload;
        //执行实例
        var uploadInst = upload.render({
            elem: '#driver' //绑定元素
            ,url: '{{:url("/driver/updateMult")}}' //上传接口
			,accept:'file'
            ,done: function(res){
                layer.msg('保存成功');
                parent.getData();
            }
            ,error: function(){
                //请求异常回调
            }
        });
    });
</script>
{include file="common/header" /}